<!DOCTYPE html>
<meta charset="UTF-8">

<table id="boandren_table" lay-filter="boandren_table"></table>
<script>
	layui.use('table', function(){
	  var table = layui.table;
	  table.render({
		  	title:'学生列表',
		  	color:'#666',
			height: 'auto',
		    elem: '#boandren_table',
		    url:'audit/boandrenpage',
		    toolbar: '#toolbar',
		    page: true,
		    cols: [
		    	[
		      {type:'checkbox'},
		      {field:'username', width:'13%', title: '用户名'},
		      {field:'name', width:'13%', title: '姓名'},
		      {field:'phone', width:'13%', title: '联系电话'},
		      {field:'title', width:'13%', title: '书名'},
		      {field:'borrowData', width:'15%', title: '借书时间'},
		      {field:'returnData', width:'16%', title: '还书时间'},
		      {field:'state', width:'13%', title: '状态'}
		   	 	]
		    ]
	  		
	  		});
	
	  });
	function red(){
		var table = layui.table;
	  	table.reload('boandren_table', {
		  url: 'audit/boandrenpage'
		});
	}
  </script>